import * as THREE from 'three'

export const  renderer = new THREE.WebGLRenderer({
   // 抗锯齿
    antialias: true,
    // 背景色透明
    // alpha: false,
  });

  renderer.setPixelRatio(window.devicePixelRatio);
  renderer.setSize(window.innerWidth, window.innerHeight);

  renderer.shadowMap.enabled = true;
  // renderer.physicallyCorrectLights = true;

  export const  getRenderer = ()=>renderer